# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mlite
pkgver=0.2.28
pkgrel=0
pkgdesc="Useful classes originating from MeeGo Touch"
url="https://git.sailfishos.org/mer-core/mlite"
arch="all"
license="LGPL-2.1-only"
depends_dev="dconf-dev"
makedepends="$depends_dev qt5-qtbase-dev qt5-qttools-dev"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/mlite/-/archive/$pkgver/mlite-$pkgver.tar.gz"

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	rm -r "$pkgdir/opt"
}

sha512sums="a42fdf5d84cdaea75b660a9415c0b0ff4728fe3b16d7b5ccef0cb78c1c9c02a96c8a6c6c0fefdb4854190c538bfadddb017b6e2dc5fa376a95426b34fd9fbb82  mlite-0.2.28.tar.gz"
